//
//  Level.h
//  ToucheTouche
//
//  Created by Jordan Montel on 13/01/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GameAventureViewController.h"

@interface Level : NSObject {
    
    /* Float */
    float floatScore; // score general
    float floatScoreToAdd; // score a ajouter
    float floatScoreForExtra; // score pour l'extra
    float floatLife; // vie
    float floatLifeToRemove; // vie a enlever
    float floatLifeProgress; // barre de vie
    float floatLifeProgressToRemove; // points a enlever a la barre de vie
    float floatExtraScore; // score de l'extra a ajouter au niveau
    
    /* NSInteger */
    NSInteger intTimeLevel; // temps du niveau
    NSInteger intTimeLevelToRemove; // temps du niveau decroissant
    NSInteger intCurrentLevel; // numero du niveau
    NSInteger intTimeImage; // temps apparition image
    
    /* NSTimeIntervale */
    NSTimeInterval timeImage;

    /* UIColor */
    UIColor *colorBackground;
    
    /* NSString */
    NSString *fileImageName;
    
    GameAventureViewController *gameAventureViewController;
    

    
}

@property (nonatomic, retain) NSString *fileImageName;
@property (nonatomic, retain) UIColor *colorBackground;

@property (nonatomic, assign) NSTimeInterval timeImage;

@property (nonatomic, assign) float floatScore;
@property (nonatomic, assign) float floatScoreToAdd;
@property (nonatomic, assign) float floatScoreForExtra;
@property (nonatomic, assign) float floatLife;
@property (nonatomic, assign) float floatLifeToRemove;
@property (nonatomic, assign) float floatLifeProgress;
@property (nonatomic, assign) float floatLifeProgressToRemove;
@property (nonatomic, assign) float floatExtraScore;

@property (nonatomic, assign) NSInteger intTimeLevel;
@property (nonatomic, assign) NSInteger intTimeLevelToRemove;
@property (nonatomic, assign) NSInteger intCurrentLevel;


//@property (nonatomic, assign) NSInteger intTimeImage; // a faire

+ (Level *)sharedLevel;

// init : score, score to add, score for extra, life, life to remove, lifeprogress, lifeprogress to remove, time level, time level to remove, current level, time image, background, image
- (void)initLevel:(float)initFloatScore:(float)initFloatScoreToAdd:(float)initFloatScoreForExtra:(float)initFloatLife:(float)initFloatLifeToRemove:(float)initFloatLifeProgress:(float)initFloatLifeProgressToRemove:(NSInteger)initIntTimeLevel:(NSInteger)initTimeLevelToRemove:(NSInteger)initCurrentLevel:(NSTimeInterval)initTimeImage:(NSString *)fileBackground:(NSString *)fileImage;

- (void)addScore:(float)floatScoreToAdd; // score a ajouter au score global
- (void)removeLife:(float)floatLifeToRemove:(float)floatLifeProgressToRemove; // enlever de la vie et a la barre de vie
- (void)addLife:(float)floatLifeToAdd:(float)floatLifeProgressToAdd; // ajouter de la vie et a la barre de vie
- (void)setIntTimeLevel:(NSInteger)intSetTimeLevel; // choisir le temps du niveau
- (void)removeTimeLevel:(NSInteger)intRemoveTimeLevel; // enlever du temps au niveau
- (void)initExtraScore:(float)initExtraScore; // init du score de l'extra



@end
